﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMLightDemo.Models
{
    public class DownTaskModel:ObservableObject
    {
        private FileType fileAttribute;

        public FileType FileAttribute
        {
            get { return fileAttribute; }
            set
            {
                fileAttribute = value;
                RaisePropertyChanged(nameof(FileAttribute));
            }
        }

        private string fileName;

        public string FileName
        {
            get { return fileName; }
            set
            {
                fileName = value;
                RaisePropertyChanged(nameof(FileName));
            }
        }

        private double fileSize;

        public double FileSize
        {
            get { return fileSize; }
            set
            {
                fileSize = value;
                RaisePropertyChanged(nameof(FileSize));
            }
        }

        private double fileDownloaded;

        public double FileDownloaded
        {
            get { return fileDownloaded; }
            set
            {
                fileDownloaded = value;
                RaisePropertyChanged(nameof(FileDownloaded));
            }
        }


        private DateTime downloadTime;

        public DateTime DownloadTime
        {
            get { return downloadTime; }
            set
            {
                downloadTime = value;
                RaisePropertyChanged(nameof(DownloadTime));
            }
        }

        private double finishRate;

        public double FinishRate
        {
            get { return finishRate; }
            set
            {
                finishRate = value;
                RaisePropertyChanged(nameof(FinishRate));
            }
        }

        private double downspeed;

        public double DownSpeed
        {
            get { return downspeed; }
            set
            {
                downspeed = value;
                RaisePropertyChanged(nameof(DownSpeed));
            }
        }








    }
}
